module(
    name = "lz4-erlang",
    version = "1.9.4.1",
)

bazel_dep(
    name = "platforms",
    version = "0.0.7",
)

bazel_dep(
    name = "rules_cc",
    version = "0.0.9",
)

external_deps = use_extension(
    ":extensions.bzl",
    "external_deps",
)

use_repo(
    external_deps,
    "lz4_src",
    "nif_helpers",
)

external_test_deps = use_extension(
    ":extensions.bzl",
    "external_test_deps",
    dev_dependency = True,
)

use_repo(
    external_test_deps,
    "pdf_reference",
)

bazel_dep(
    name = "rules_erlang",
    version = "3.15.1",
)

erlang_config = use_extension(
    "@rules_erlang//bzlmod:extensions.bzl",
    "erlang_config",
    dev_dependency = True,
)

erlang_config.internal_erlang_from_github_release(
    name = "24",
    sha256 = "aad5d79ab7554b5827298024b722dbbf54bf01b9a5737e633e93e5953fadc4f9",
    version = "24.3.4.16",
)

erlang_config.internal_erlang_from_github_release(
    name = "25",
    sha256 = "fd690c843100c3268ac7d8ada02af8310e8520bf32581eb72f28c26ae61b46ad",
    version = "25.3.2.12",
)

erlang_config.internal_erlang_from_github_release(
    name = "26",
    sha256 = "47853ea9230643a0a31004433f07a71c1b92d6e0094534f629e3b75dbc62f193",
    version = "26.0.2",
)

use_repo(
    erlang_config,
    "erlang_config",
)

erlang_package = use_extension(
    "@rules_erlang//bzlmod:extensions.bzl",
    "erlang_package",
)

erlang_package.hex_package(
    name = "host_triple",
    sha256 = "26fee396a7c0e1d66115e74638a795366496b59bf13f474f3ae1c4491fd14fc5",
    version = "0.1.0",
)

use_repo(
    erlang_package,
    "host_triple",
)

erlang_dev_package = use_extension(
    "@rules_erlang//bzlmod:extensions.bzl",
    "erlang_package",
    dev_dependency = True,
)

erlang_dev_package.git_package(
    testonly = True,
    branch = "master",
    repository = "extend/ct_helper",
)

use_repo(
    erlang_dev_package,
    "ct_helper",
)
